package t03;

/**
 * 固定工资员工
 */
public class FixedSalaryEmployee extends Employee {
    private double weeklySalary;// 每周的工资

    public FixedSalaryEmployee(String name, int age, double weeklySalary) {
        // 将每周工资存入父类所提供的salary属性中
        super(name, age, weeklySalary);
        this.weeklySalary = weeklySalary;
    }

    @Override
    public double getSalary() {
        return super.getSalary();
    }
}
